/*
 * April11.cpp
 *
 *  Created on: Apr 11, 2012
 *      Author: Anthony Varghese
 */

#include <iostream>
#include "Stack.h"

using namespace std;

int main(){
	std::cout << "Stack example" << std::endl;

	cout << "Enter a line of characters> " << flush;
	Stack s;

	char c = '\0';
	while (c != '\n'){
		cin.get( c );
		s.push( c );
	}

	while ( ! s.is_empty() )
		cout << s.pop();
	cout << endl;


	std::cout << "done!" << std::endl;
}


